Release 10.1A: OpenEdge Data Management:
SQL Reference
SUFFIX
Returns the substring of a character string starting after the position specified by
start_posand the secondchar_expression, to the end of the string.Syntax
char_expressionEvaluates to a character string, typically a character-string literal or column name. If the expression evaluates to
NULL,SUFFIXreturnsNULL.start_posEvaluates to an integer value.
SUFFIXsearches the string specified in the first argument starting at that position. A value of1indicates the first character of the string.char_expressionEvaluates to a single character.
ExampleSUFFIXreturns the substring that begins with that character. IfSUFFIXdoes not find the character afterstart_pos, it returnsNULL. If the expression evaluates to more than one character,SUFFIXignores all but the first character.This example illustrates two ways to use the
SUFFIXfunction:
Note
Compatibility
Progress extension
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |